Skip to content

Add example of mutable list sharing - #1200

Open
synckerz wants to merge 3 commits into
realpython:masterfrom
synckerz:docs/issue-1158-mutable-list-copy
Open

synckerz wants to merge 3 commits into
realpython:masterfrom
synckerz:docs/issue-1158-mutable-list-copy

Conversation

@synckerz

@synckerz synckerz commented Nov 8, 2026

Copy link
Copy Markdown

Document how augmented assignment can modify a shared list and demonstrate using copy() to avoid unintended side effects.

Document how augmented assignment can modify a shared list and demonstrate using copy() to avoid unintended side effects.
Clarified examples of mutable and immutable types in Python.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant